Towards a Coalgebraic Chomsky Hierarchy
نویسندگان
چکیده
The Chomsky hierarchy plays a prominent role in the foundations of theoretical computer science relating classes of formal languages of primary importance as well as the grammars and machine models that represent those language classes. It is well-known that regular languages can be captured by coalgebras. They form precisely the image of all finite coalgebras for the set functor X 7→ 2×X under the unique homomorphisms into the final coalgebra, which is carried by all formal languages in this case. There have also been attempts to model context-free grammars (in Greibach normal form) coalgebraically [2, 5] and hence, to capture context-free languages. But what about other language classes and other machine models in the Chomsky Hierarchy? Here we bring together several ideas in order to treat machine models that are automata extended by extra storage; in particular, we show how to model machines with a stack or a Turing tape coalgebraically, and so we obtain the first coalgebraic account of recursively enumerable languages. Our central notion is that of a T-automaton, i.e. a finite coalgebra m : X → B × (TX), where A is a set of inputs, T = (T, η, μ) is a finitary monad, which we think as modelling extra storage, and B is an (EilenbergMoore) T-algebra a : TB → B of outputs. The semantics of a T-automaton can then be defined via the generalized power-set construction [4]: notice first that the functor LX = B ×X (being essentially given by product) lifts to the category of T-algebras; then one can extend the coalgebra structure m to the free T -algebra on X to obtain an L-coalgebra m : TX → B × (TX). Observe that the final L-coalgebra is carried by the set B ∗ of formal power-series on B. Finally, one defines the semantic map as J--Km = h · ηX : X → B ∗ , where h : TX → BA is the unique L-coalgebra homomorphism from (TX,m) to the final L-coalgebra. In order to model machines with pushdown storage we consider the stack monad: for a finite set Γ of stack symbols this is the submonad T of the store monad (--×Γ ∗)Γ for which elements 〈r, t〉 of TX satisfy the following restriction: there exists a k (depending on r, t) such that for every w ∈ Γ k and u ∈ Γ ∗ we have r(wu) = r and t(wu) = t(w)u. Goncharov [1, Proposition 5] has shown that the stack monad can be presented by operations and equations by the stack theory w.r.t. Γ = {γ1, . . . , γn}: this theory consists of the operations pop : n+ 1→ 1 and pushi : 1→ 1 for i = 1, . . . , n. These operations are subject to the following axioms:
منابع مشابه
Towards a Hierarchy of Visual Languages
Formalisms for visual language specification have been investigated for more than two decades now. However, there has been little attempt to develop a systematic and comprehensive hierarchy of visual languages based on formal properties. Given the importance of the Chomsky hierarchy in the theory of textual languages and the difficulty of comparing the different visual language formalisms, it i...
متن کاملDuplication in DNA Sequences
Duplication and repeat-deletion are the basic models of errors occurring during DNA replication from the viewpoint of formal languages. During DNA replication, subsequences of a strand of DNA may be copied several times (duplication) or skipped (repeat-deletion). Iterated duplication and repeat-deletion have been well-studied, but little is known about single-step duplication and repeat-deletio...
متن کامل1 Formal Language Theory
This chapter provides a gentle introduction to formal language theory, aimed at readers with little background in formal systems. The motivation is natural language processing (NLP), and the presentation is geared towards NLP applications, with linguistically motivated examples, but without compromising mathematical rigor. The text covers elementary formal language theory, including: regular la...
متن کاملTowards a Coalgebraic Semantics of the Ambient Calculus
Recently, various process calculi have been introduced which are suited for the modelling of mobile computation and in particular the mobility of program code; a prominent example is the ambient calculus. Due to the complexity of the involved spatial reduction, there is — in contrast to the situation in standard process algebra — up to now no satisfying coalgebraic representation of a mobile pr...
متن کاملDoes Formal Complexity Reflect Cognitive Complexity? Investigating Aspects of the Chomsky Hierarchy in an Artificial Language Learning Study
This study investigated whether formal complexity, as described by the Chomsky Hierarchy, corresponds to cognitive complexity during language learning. According to the Chomsky Hierarchy, nested dependencies (context-free) are less complex than cross-serial dependencies (mildly context-sensitive). In two artificial grammar learning (AGL) experiments participants were presented with a language c...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1401.5277 شماره
صفحات -
تاریخ انتشار 2014